import request from '@/utils/request';

/**
 * 查询角色列表
 * @param params 查询条件
 */
export async function listStore(params) {
  const res = await request.get('system/store', {
    params
  });
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
// 门店角色
export async function merchantRole(params) {
  const res = await request.post('store/merchantRole', {
    params
  });
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
export async function upStoreStatus(params) {
	const res = await request.post('store/upStoreStatus', {
	  ...params
	});
	if (res.data.code === 0) {
	  return res.data;
	}
	return Promise.reject(new Error(res.data.message));
  }
  
